package com.example.gokchinesefoodmappcdev.service.impl;


import com.example.gokchinesefoodmappcdev.dao.SysMenuDao;
import com.example.gokchinesefoodmappcdev.entity.SysMenu;
import com.example.gokchinesefoodmappcdev.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MenuServiceImpl implements MenuService {

    @Autowired
    SysMenuDao menuDao;


    @Override
    public List<SysMenu> getAllMenus() {
        return menuDao.selectList(null);
    }
}
